package com.spring.boot.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.spring.boot.config.FeignConfiguration;

@FeignClient(value = "member",configuration = FeignConfiguration.class,fallbackFactory = HystrixClientFactory.class)
public interface TeacherFeign {

	@RequestMapping(value = "/member/getMember", method = RequestMethod.GET)
	public Object getMember(@RequestParam("name") String name);

	@RequestMapping(value = "/member/getBody", method = RequestMethod.POST)
	public Object getBody(@RequestBody String body);
}
